Chapter 4 programming project 1