let width = function i -> upper_bound (i) - lower_bound (i)