Chapter 10.1 - Supplement

 Helper : 

One helpful function to help you in solving the Todo would be 

millis();

The function returns the number of milliseconds (in unsigned long) passed since the board began running the current program.
This number will overflow (go back to zero), after approximately 50 days.