add example of shared memory