C++ builder idiom example