started ex.6 c++