better example of global variable