added test-code.cpp