a sentence is a punishment meant to restore justice