A guide to expert systems