module HelloWorld;

using test::*;

var s = 0;

func Update(a : int, b : int) : void
{
	s = b;
}

func Main() : int
{
	var o = new ObservableValue^();
	attach(o.ValueChanged, Update);
	o.Value = 1;
	o.Value = 2;
	o.Value = 3;
	return s;
}