Add Composite pattern code sample