define method compose(f,g) method(x) f(g(x)) end end;