Use class for global variables