Added semaphore example.