Create an iterator here, using `yield return`. Then we can use `foreach` and LINQ instead of `for`.