According to the Talking About Ethics textbook, which of the following was considered the purpose of criminal punishment?