Exercises from Learn to program book by Chris Pine