spin example: simple cycle