The assignment called for this to be 1-as-first indexing, rather than 0-indexing. You'll have to include the smallest bit of arithmetic to make that happen.