code: def find(self, name):
          
          for i, nm in enumerate(self.data):
              if nm[-1] == name:
                  return i
          return -1
docs: Return the index of the toc entry with name NAME.
  
             Return -1 for failure.