Script showing usage of global variables in C++ class