Remember that for an array of length N the last index is N-1.