fixed example program wih worker thread, now exists appropriately