input: from typing import List
  
  def basic_version_control(lines: List[str]) -> VersionControl:
      """ Create and return an instance of the VersionControl class which keeps track 
      of changes in the code. The class has two methods: commit to log a change and 
      restore to revert to a previous version using a log file that contains the 
      recorded versions.
      >>> vc = basic_version_control(['print("Hello World!")', 'a = 5'])
      >>> vc.commit()
      >>> vc.restore()
      """
output:     class VersionControl:
          def __init__(self, lines: List[str]):
              self.lines = lines
              self.log = []
          
          def commit(self):
              self.log.append(self.lines[:])
          
          def restore(self):
              if self.log:
                  self.lines = self.log.pop()
      
      return VersionControl(lines)