Add c++ class
keep some more useful boilerplate code