added (not working) example to shm in main.c