add user program spin.c