How is tom in the adventures of tom sawyer similar to the character is the prince and the pauper?