added the Parser class