create the calculateDistance in GpsTracker(Corrected)