[class_parser_demo] add demo of class-based parsing