Refactoring of article.php following the MVC design pattern