a vehicle accelerates then slows down