input: from typing import List
  
  
  class VersionControl:
      """ Basic version control system to keep track of changes in the code.
      >>> vc = VersionControl(["print('Hello, World!')"])
      >>> vc.commit()
      >>> vc.restore()
      """
  
      def __init__(self, lines: List[str]):
          self.lines = lines
          self.mark = 0
  
      def commit(self):
          self.mark += 1
          log_file = open("log_file.txt", "a+")
          log_file.write(str(self.mark) + ": " + str(self.lines) + "\n")
          log_file.close()
  
      def restore(self):
          log_file = open("log_file.txt", "r")
          lines = log_file.readlines()
          log_file.close()
          to_mark = self.mark - 1
          if to_mark >= 0 and to_mark < len(lines):
              self.lines = eval(lines[to_mark].split(": ", 1)[1])
          else:
              self.lines = []
          log_file.close()
output:     
          self.mark = to_mark
  