I have an idea similar to this concept:
class Example {
static var X;
static setX(value) {
this.X = value;
}
static getX() {
return this.X;
}
}
This allows the variable to be stored within the class and easily modified from outside.