Create ex1.2.4.cpp