Using tuples instead of array.