add context and a constructor for traj