You should never underestimate the intelligence of a smart dog.