they get a horrible plague of rats , they pay a rat piper , the rats all follow the kid out of town , hoppity-skip , end of plague , everyone 's happy that no-one 's widdling in the flour any more , the government gets re-elected by a grateful population , general celebration all round .