input: def VersionControl(lines: List[str]) -> object:
      """Implement a basic version control system in Python that keeps track of changes in the code.
      The system should allow for committing changes and restoring to a previous state.
      >>> vcs = VersionControl(["print('Hello, World!')", "x = 5"])
      >>> vcs.commit()
      >>> open("log_file.txt", "r").readlines()
      ['1: [\'print("Hello, World!")\', \'x = 5\']', '\n']
      >>> vcs.restore()
      >>> vcs.lines
      '1: [\'print("Hello, World!")\', \'x = 5\']', '\n'
      """
output:     
      class VersionControl:
          def __init__(self, lines: List[str]):
              self.lines = lines
              self.commit_id = 0
              self.log_file = "log_file.txt"
          
          def commit(self):
              self.commit_id += 1
              with open(self.log_file, "a") as f:
                  f.write(f"{self.commit_id}: {self.lines}\n")
          
          def restore(self):
              with open(self.log_file, "r") as f:
                  lines = f.readlines()
              self.lines = lines[-1].strip()
              return self.lines
  