@classmethod
def speed_function(cls, location1, location2):
    """Return average speed between two locations in miles per hour.

        This function currently just returns the class prop average_speed
        but could easily be extended in the future to account for 'real life',
        for example some roads could be faster than others.
        """
    return cls.average_speed
