First Part - sharemem.c