parser class