<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def append(self, item):
 """Adds a new item to the end of the collection."""

        if len(self) == 0:
            # Special case, we make this the current item
            self.index = 0

        self.items.append(item)