Barrier Class Exmpale