first try of thread implementation with Coro