putting a person in jail is partly a way to punish them