modified the some_short_sample_codes.cpp file