def rivers_with_station(stations):
    """This function creates a set containing all the river names which have a station on it. 
    It is set up so each river only occurs onece """
    rivers = set()
    for station in stations:
        rivers.add(station.river)
    rivers = sorted(rivers)
    return rivers