The essential function of punishment in society is

Reform

Affirmation of moral standards

Revenge

None of these