C++ code snip-its for class