added addArticle code, added post method