Pre-course code exercises from Chris Pine's Learn to Program Book