Create exercise4.4.cpp