HW3: index file done