My solutions to the questions from Chris Pine's "Learn to Program"