What are three of the roles of the judge in a trial