a race car is accelerating and decelerating