Add encapsulation example