A judge imposed a punishment for someone who committed a felony or misdemeanor, based always on the Penal Code.