test.cpp now complete