In the Middle Ages, surrounding a castle with a ditch filled with water proved ....... a successful technique ....... its security.