finished chapter 4.4