acceleration and averages solved. deceleration added.