Solutions to the code questions.