Chapter 7: exercises and review using arrays