added pattern matching code examples
Merge pull request #9 from typesafehub/wip/patternmatching

added pattern matching code examples