c++ cw1 modified