added getxcoordinates() to methods of trajectory class