This is an illustration of second order conditioning. Fred's dog associates the bell with food, and therefore salivates. Fred's dog is then trained to associate the whistle with the bell, which is associated with food, and so he salivates. With the removal of the bell and food, the associations are still there. Fred's dog thinks whistle means bell and bell means food, therefore he thinks that whistle means food and he salivates.