Add object.get() method for object