example4.cpp