Each time the loop runs, access the current index in the classes and times lists by coding index between the brackets.

Make sure to pick index, followed by index.