Add sample for chapter 2.