Create ex2_7.cpp