C++ samples/ utilities