a convict is sentenced by a judge