refactored the example matcher into a reusable module, added tests (component-test) and updated example styling