Added C++ code showing usage of member class