Java Composite Design Pattern Demo