C++ in class Examples