Opdracht K: added shared memory