small change to code example ising model