index for hw4 assgn2