<reponame>waterlink/gossipping_bus_drivers_python_2017_07_13<gh_stars>0
class Route(object):
    def __init__(self, stops):
        self.stops = stops

    def next_stop_number(self, number):
        return (number + 1) % len(self.stops)

    def stop_at(self, number):
        return self.stops[number]
class Route(object):
    def __init__(self, stops):
        self.stops = stops

    def next_stop_number(self, number):
        return (number + 1) % len(self.stops)

    def stop_at(self, number):
        return self.stops[number]