Developing well-structured knowledge-based systems