update Prototype and Factory C++ projects