def rivers_with_station(stations):
    """
function that returns a set of the rivers with at least one station on them
if passed a list of MonitoringStation objects
"""

    riversWithStation = set()

    for station in stations:
        if station.river is not None:
            riversWithStation.add(station.river)

    return riversWithStation