My first foray into C++ programming