added ising.py