finish section 4 in chapter 3