Changed index as hw6