Constructor added to the knowledgebase class