These are rules and principles that guide judges and magistrates in deciding the appropriate punishment for a defendant.