add constructor for CBar