Writing a simple expert system in Prolog · HackerTrans