adding spin example