Class work for C++