I have seen dogs, cats, and rats (yes, rats) perform complex, planned actions clearly relying on good models of who were now and would later be looking at what.
After a couple of catches the remaining mice blocked the entrances by packing them with junk they found on the floor.
I always wondered if that was random behaviour or deliberate intent.
You really have to wonder just how smart animals would become if they could speak and train subsequent generations like humans do - never mind if they somehow invented reading and writing.
It's a big difference.