update Composite.

make Composite visitable.