https://courses.grainger.illinois.edu/bioe476/fa2019/Lectures/Lec22_Fa19_w example.pdf