Three Cases castle.js