encapsulation example p2