finished chapter 4.3