Update Sample.cpp