refactoring Task2Test