Simulation of Ising Model