a scream from the baker 's wife and a hefty swipe with a broom eventually sent him on his way , but not before he had managed to eat most of a jam doughnut and nibble holes through at least three loaves of bread and a custard tart .