finished chapter 4 except exercises