[chapter 12] add code

NOTE: crash
fix crash bug

NOTE: lambda works now