work in chapter 3 and 5