hed stopped to give thanks for his safe journey at a beautiful three-naved church in the centre of the town and looked up to see the tower hung with iron cages just like these , each with a whimpering man inside .