Add solution to 4th example on anonymous functions