add new class Barrier