Update example8.cpp