Add chapter 10

Pedantic comment - this doesn't ask the user to guess a secret number. It just assumes they know what the program does.