input: def VersionControl(lines):
      """
      Implement a basic version control system in Python that keeps track of changes in the code.
      
      Example:
      version_control = VersionControl(['print("Hello World!")'])
      version_control.commit()
      version_control.restore()
      """
output:     
      class VersionControl:
          def __init__(self, lines):
              self.lines = lines
              self.history = []
          
          def commit(self):
              self.history.append(self.lines[:])
          
          def restore(self):
              if self.history:
                  self.lines = self.history.pop()
              else:
                  raise ValueError("No history to restore from.")
  