Create ex2_9.cpp