solved problem 5
renamed get-pairs to get-products