passing sentence is for punishing a crime