A better demo, making use of the master/worker barrier for synchronization