Expert system analysis and design