encapsulation example