spin array example