I wonder if instead of `text` we instead have `current_index`, which would be the value of `i`.