input: from typing import List
  
  def implement_version_control(code_lines: List[str]) -> VersionControl:
      """ Implement a basic version control system in Python that keeps track of changes in the code.
      The system should allow committing the current state of the code and restoring to a previous version.
      >>> vcs = implement_version_control(["print('Hello World')"])
      >>> vcs.commit()
      >>> vcs.lines.append("print('Goodbye World')")
      >>> vcs.commit()
      >>> vcs.restore()
      >>> vcs.lines
      ["print('Hello World')"]
      """
      return VersionControl(code_lines)
output:     
  class VersionControl:
      def __init__(self, code_lines: List[str]):
          self.lines = code_lines
          self.versions = []
  
      def commit(self):
          self.versions.append(self.lines[:])
  
      def restore(self):
          if self.versions:
              self.lines = self.versions.pop()
  