Introduction to C++ Test 2 Lab solution