Simplified the pattern matching examples.