working on negativeIndex function project