Updating Composite design pattern