created a parser class