A Tool for Building Expert Systems