https://courses.physics.illinois.edu/phys596/fa2015/StudentWork/team5_final.pdf