https://courses.physics.illinois.edu/phys596/fa2016/StudentWork/team7_final.pdf