Fix chapter 2 samples