first working example (T_MSGFactory.cpp)