Bug in comment: the last indexable cell of an array is array_length - 1. ty to Diego for catching this