Classes and methods for trajectory data