input: def VersionControl(lines):
      """
      Implement a basic version control system in Python that keeps track of changes in the code.
      The class VersionControl should have methods to commit changes and restore to a previous state.
      Each commit increments a counter and writes the current state of the code to a log file.
      The restore method retrieves the state from the log file at the previous commit.
      >>> version_control = VersionControl(['print("Hello World!")\n'])
      >>> version_control.commit()
      >>> version_control.restore()
      """
output:     class VersionControl:
          def __init__(self, lines):
              self.lines = lines
              self.commit_counter = 0
              self.log_file = "version_control_log.txt"
          
          def commit(self):
              with open(self.log_file, "a") as f:
                  f.write(f"Commit {self.commit_counter}:\n")
                  for line in self.lines:
                      f.write(line)
                  f.write("\n")
              self.commit_counter += 1
          
          def restore(self):
              with open(self.log_file, "r") as f:
                  lines = f.readlines()
              last_commit_index = lines.index(f"Commit {self.commit_counter - 1}:\n")
              self.lines = lines[last_commit_index + 1:lines.index("\n", last_commit_index)]