those who commit offenses against the law are sometimes sentenced by courts to a punishment