Modified SimpleSemaphore.java as per assignment description.