finished the chapter 5 and exercise