added proper encapsulation of object data