Implementation of global variables