Application of expert system for education