Emotions, Intelligence and the Behavior of Dogs