created a semaphore-class the sharedMemory depends on now