<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transpose(self, interval, up=True):
 """Transpose all the notes in the container up or down the given interval."""

        for n in self.notes:
            n.transpose(interval, up)
        return self