The weight and the mapping function are the same
Modify the weight function to take the pair instead of components
3.72