updateScope(scope) {
        this.scope = scope;
        for (let i = 0; i < this.nodeList.length; i++) { this.nodeList[i].scope = scope; }
    }
Function to update the scope when a new element is added.
@param {Scope} scope - the circuit in which we add element