implemented match() and parse() in class argument