Create ex9.cpp