Code corrected and blog post completed