a race car accelerates and decelerates