Update sample.cc