move CyclicBarrier to The parent class