<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, data):
 """Add a data set to the next block index"""

        index = self.n_blocks # note off by one so use as index
        self[index] = data
        self.refs.append(data)