lab1 faulty semaphores & collections