now able to generate the trajectories and save them as pickle