LazyGenerators, task 6