courts can decide punishment for crimes