A judge can sentence a person who has commited a crime to spend time in jail.