refactored Match.matches_per_class to use LIST