Cat ducked into Tom's pocket.
The dog shot back in the air.
"Oh no." Tom read the dog spell again.
"This dog will disappear in a few minutes!"
Cat looked around the lab.
"I have an idea."
Soon Tom hurried into the Royal Ballroom.
It was full of guests and gifts.
The queen clapped her hands.
"It's time for the prince's gift!"
Tom opened a door.
Everyone gasped as the dog flew inside.
"Wow!" Prince Eric cried.
"I got a flying dog!"
"I want one too!" yelled a princess.
The dog flew around the room.
But soon Prince Eric was bored.
"Mommy, I want to pet that doggie!"
Everyone looked at Tom.
Cat was ready.
She jumped out of Tom's pocket.
The dog saw Cat and flew down.
Poof! The dog disappeared!
Tom reached into his pocket.
"What's going on, Wizard?" Dirk snapped.
The queen was frowning.
"Tom," she said. "Where is—"
"Here!" Tom held out his hand.
Prince Eric blinked in surprise.
"You turned the dog into a frog!" he said.
Tom nodded.
"I like frogs better than dogs!" the prince cried.
Dirk scowled.
Tom gave the gift to the prince.
"Happy Birthday, Prince Eric!" he said.