Start of chapter 7.5 code homework