Make matches a class method