Source: https://www.physics.utah.edu/~gernot/6775/labmanual_Lab1_part1.pdf