add chapter 5 program 8