Add index method to tuple