Chapter 8 programming project 1