Exercises from the book Learn to Program by Chris Pine