public function edit($body, $integrityCheck = false){
        if(!is_string($body)){
            throw new InvalidArgumentException('a QTI container must have a body of string type');
        }
        if($integrityCheck && !$this->checkIntegrity($body)){
            return false;
        }
        $this->body = $body;
        return true;
    }