courts decide punishment for crimes