Modified line 20, increased for loop's max index by one.