Flatten exercises

Just another excercise of generators....