add encapsulation example