Use haversine formula in two other methods