A little nitpicky, but for-loops don't create closures, so declaring a `var` in one doesn't make sense. Better to move declaration outside of iterator