created EventBarrier Class