https://www.amsebehm2017.com/2019/12/First-average-math.html