for CompsitePattern & DecoratorPattern