Constructing an intentional expert system