class Foo {} var foo = Foo(); print foo.bar = "bar value"; // out: bar value print foo.baz = "baz value"; // out: baz value print foo.bar; // out: bar value print foo.baz; // out: baz value