To find the speed of an object in motion, you need to measure