Simple demonstration of the Composite Pattern