Using an object-oriented approach would be your best bet. Javascript would be great for a web page. you would have something similair to the following:
******************************
Object country {
string owner;
Void public set_owner(string newOwner) {
owner = newOwner;
}
String public get_owner() {
return owner;
}
}
*****************************
ANd the code would look as the following:
*****************************
new country state1;
state1.set_owner("America");
print(state1.get_owner());
state1.set_owner("England");
print(state1.get_owner());
*******************************
And the output would look like:
*******************************
America
England
*******************************
Hope that helps, if you need, I can try to explain it differently