added lecture notes and examples on encapsulation