basic function is finished but speed and distance.