loops and iterators exercises