trajectory class