add generators example using co library