How to Code a Sandcastle