adding last two C++ scripts