Update SampleCode.cpp