Added example for pattern matching.