def rivers_with_station(stations):
    """This function takes in a list of stations (MonitoringStation type),
    and returns a set of strings, containing the names of rivers that have a station."""

    #Create a set of rivers that have stations
    rivers = {station.river for station in stations}

    return rivers