my c++ excercise