Create ex5_21.cpp