Create exercise8.4.cpp