a prison is for rehabilitation of inmates