Added semaphore example