Simple class generator for C++