edit sample1.cpp