Basic example code form Stroustroup C++11