Add solution to 2nd example on anonymous functions