Adding knowledge base class and affordance learner