Medieval allegory and the building of the new Jerusalem