Match class implemented and tested