Example code for Composite design pattern

Add Composite Design Pattern