a race car accelerates then decelerates