Implemented C++ features as examples