Wrote funcTrajectories