ES6 Iterators and Generators by example