updated source code for the blog