add each_pair_do snippet