Update example.cpp

add some comments