Worked on the tangent triangle to measure speed