adding GetTrialData method to Trial class