First implementation of the pair function using uthash