added assignment 1 and updated index