added method addChild with levels