Our c++ engine design