Construct a monitor that implements semaphores. This will demonstrate that a monitor can be used any place a semaphore can be used.