working on the chapter 4