Trying out semaphores