added lua example using coroutines