Source: https://math.berkeley.edu/~brent/files/lebesgue_integral.pdf