The architecture of the castles