Array: the collection - A programming example using 1-D array