Some C++ samples