input: from typing import List
  
  def basic_version_control(lines: List[str]) -> VersionControl:
      """Implement a basic version control system that keeps track of changes in the code.
      
      The system should be able to commit changes and restore the code to a previous version.
      Example:
      vcs = basic_version_control(["print('Hello World')"])
      vcs.commit()
      vcs.restore()
      """
output:     class VersionControl:
          def __init__(self, lines: List[str]):
              self.lines = lines
              self.history = [lines.copy()]
          
          def commit(self):
              self.history.append(self.lines.copy())
          
          def restore(self):
              if len(self.history) > 1:
                  self.history.pop()
                  self.lines = self.history[-1].copy()
              else:
                  raise ValueError("No previous version to restore to.")
      
      return VersionControl(lines)