Fix encapsulation example.