Reverted to original version of index to submit for homework