[lab1] Added parse-file function + test