enumerate three basic function of criminal trial courts​