hw3 Part2 index layout