Use hash instead of array.