An elegant extension of the Array object