code refactoring, added contests to articles