the code for the questions from July's The Art Of Programming