Changed IsingModel constructor