Edited index for hw4 part 1