Update sample-main.cpp