Problem 8.7 (Snooze with signal).