sleep.c roughed out