Working on index
basic implementation of index array