experimenting with generators and ecma6