people are put in prison as a punishment for commiting a crime