finish the examples chapter 2