spinwave tutorial