Completed array exercise