add chap1 anonymous function test