https://www.ctechnician.com/2017/11/pipe-and-distance.html