Various newbie C++ samples