creating encapsulation