Adding what I've made for the Ising model in Chapter 1