Code for SD blog post