<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def insert_line(self, line):
 """Insert a new line"""

        if self.current_block is not None:
            self.current_block.append(line)
        else:
            self.header.append(line)