wrote addition of velocities