Simple Ising-like example.