The inmates shall be graded and classified in such a manner as is most conducive to prison discipline and the moral status of the inmates.