<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def next(self):
 """Goes one item ahead and returns it."""

        rv = self.current
        self.pos = (self.pos + 1) % len(self.items)
        return rv