work from part 5.1
changes up to section 5.4
End of chapter 5