def rivers_with_station(stations):
    """
    Function that, given a list of station objects,
    returns a container with the names of the rivers with a monitoring station.
    
    Args:
        stations (list): List of stations (MonitoringStation).
    
    Returns:
        set: Set of names of rivers with a monitoring station.
    """

    return {station.river for station in stations}