courts assign punishment to a criminal