https://courses.physics.illinois.edu/phys596/fa2012/StudentWork/team10_final.pdf