worked on encapsulation