Ever wondered how intelligent a dog can be?