test.cpp's function