Add example on anonymous functions and pattern matching