Matching with tudomino's version