added sequence generation to trajectories class