implement simple knowledgebase