finished chapter 10.3.2