Pattern match example