Implement a knowledge-based system using a decision tree as its knowledge base.