class TrialFct implemented;
main tests it.