new file:   ex9_47.cc