[src] added example of Composite pattern implementation