def update_max_speed(driver, speed):
    """
    Updates the max speed of the driver
    :param driver: driver
    :param speed: new max speed
    :type driver: DriverProfile
    :return: updated driver profile
    """
    return driver.update_max_speed(speed)