Create pattern-matching module