Try to avoid single-letter variable names like `i`.  I think `idx` is pretty idiomatic.