<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def go_to_history(self, index):
 """ Go to this item in the history. """

        if index < len(self._working_lines):
            self.working_index = index
            self.cursor_position = len(self.text)