Doppler effect to find the velocity of a source