updated the article demo code