added class for holding trajectories