added basic code for Shared Memory