Chapter 8 program 2