Object:getIndexes function