uncurry function exer. 2.4