Patch to adopt for C++

changed the variable name class to classlabel