Threads. Homework 3