Adding match example (copied from @tlongren's pull request #37)