Wrote the parser class