Implemented match class