input: def VersionControl(lines):
      """Implement a basic version control system in Python that keeps track of changes in the code.
      The function should keep track of changes using a list of code lines and manage the changes through a log file.
      Each commit function call increase the version count and logs the content to the log file.
      The restore function reverts the code back to the previous commit.
      
      >>> vc = VersionControl(['print("hello")', 'print("world")'])
      >>> vc.commit()
      >>> vc.lines.append('print("goodbye")')
      >>> vc.commit()
      >>> vc.restore()
      >>> vc.lines
      ['print("hello")', 'print("world")']
      """
output:     
  class VersionControl:
      def __init__(self, lines):
          self.lines = lines
          self.version = 0
          self.log = []
  
      def commit(self):
          self.version += 1
          self.log.append(self.lines[:])
  
      def restore(self):
          if self.version > 1:
              self.version -= 1
              self.lines = self.log.pop()
  