barrier example
hoorah the barrier logic works