add c++ object model