Task 4 (shmem)