was for c++ class