stage 2 added post, wait, init for semaphores