working on trajectory classes