Functional version using only spine computation!
We could now use also the average width. Let's see