To schedule the next class with each iteration, increase index by one after the scheduling code.
index
Make sure to type index += 1.
index += 1