“An inmate is in prison as punishment; not to be punished.”