finished chapter 5 programs