Composite Design Pattern laboratory