Every dog you have made so far — Dog("Rex", 3) and all the rest — has been frozen from the moment it arrived.
Rex is three. He was three six lessons ago and he will be three forever, because nothing you have written has ever changed a dog after it was made.
bark certainly didn't. It read self.name, printed something, and left the dog exactly as it found it.
A birthday needs more than that.