documentation for Trajectory class