Castle: How It Works