Create exercise3.cpp