brushup in C++