Localized use of variables in some classes