The dog understood the task