started on a time scaling function for trajectories.