* added a new synchronize method to the semaphore
 * created a new example