add hw1_sample.cpp