Small c++ experimentation