Composite design pattern added.

Composite design pattern added. Test included.