Bits of semi-finished code produced as I continue to learn C++