CXX-127 Work around C2487 error with MSVC
CXX-80 adapt existing array example from psuedo code
CXX-80 minor changes
CXX-80 make the example a bit more interesting