Exercises from Chris Pine's book "Learning How to Program"