def rivers_with_station(stations):
    """For a list of MonitoringStation objects, returns set with 
    the names of rivers with a monitoring station."""
    rivers = {x.river for x in stations}
    return rivers