Code for the talk at TechEd Africa 2013 Mock Stub Shim Session