Added some encapsulation examples.

Chapter 5 encapsulation examples added.