implemented Component#addChild and Component#removeChild