added example building three dimensions of arrays, dynamically