Example of progression with recursion and generators