Updated anonymous function example #3 to match refactored example #2.