created TrialHandler class