Added semaphore implementation to Ex08