Added a small class for the ising spin variables