multithreading task - small changes

small changes according to mentor's comments
Merge pull request #3 from lozio21/master

multithreading task - small changes