Automatic Generation of Expert Systems from Examples