finished index exercise