is it possible to alter the Pair function to make it use 3 elements?