Chater 8 array_exercise_re-worked