Affordance learning beta version (knowl base needs more testing)