added 4.9.exercises.cpp