Create example4.cpp