Smart shared array example done