update how to write blog to show the small code