Finished task 3 - binary semaphore.