Improved array example
Improved example