finished shared memory part, need to do the semaphore part