Chapter 8_array exercise_FINAL