Using the Composite class