This is the final submission on semaphores part