change cpp class model