How To Code a Sandcastle