Towards a knowledge-based system