- Implementation of composite pattern.