source code of chapter 8 : Arrays