Class MatchesFunction