c++ class test