public static function distanceFactory($lat1, $long1, $lat2, $long2) {
        $point1 = new L(new C($lat1), new C($long1));
        $point2 = new L(new C($lat2), new C($long2));
        return new D($point1, $point2);
    }