Create exercise4.cpp