added a new class with global variable "globalYear"