First attempt at a concurrent version of demo1