super model writing c++