Add example that uses shared memory

