Demo for shared memory