add sample for Composite pattern w/ safety tradeoff