using Parser class so that variables needed during parsing of file fall out of scope