More encapsulation of objects