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