Thinking in cpp exercises