How a poor dog became rich