Refactor tasks2-5. First version of 6task