Examples with coroutines; the definition of yield needs to be changed