add index for assignment 1