a chief magistrate of the law, appointed to hear causes, to explain the laws, and to pronounce sentence.