add GlobalState class (Application)