make parse a class function