Ex. 29 c++