CXX-80 adapt existing array example from psuedo code
CXX-80 minor changes
CXX-80 make the example a bit more interesting