->object should be instance of Object class