multithreading task - small changes

small changes according to mentor's comments