def rivers_with_station(stations):
    """
    Args:
      stations: list of MonitoringStation objects
    Returns:
      A set of names (string) of rivers that have an associated monitoring station.
    """
    rivers = set()
    for s in stations:
        rivers.add(s.river)
    return rivers