adding example of hard to test code: anonymous functions