<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def trips(self):
 """Return all trips for this agency."""

    trips = set()
    for route in self.routes():
      trips |= route.trips()
    return trips