finish group method rewriting in c++
cpp rewrite
cpp rewrite