full workable blog code