Finished array-based section of chapter 1