Chapter 3 answers

Same comment as in previous example regarding the initialisation of the _key_ variable etc.