there were kingdoms in the ramtops so small that , if they were ravaged by a dragon , and that dragon had been killed by a young hero , and the king had given him half his kingdom as per section three of the heroic code , then there would n't have been any kingdom left .