Finished index according to HW3