Knowledge engineering in expert system