Create Factor C++