public function getAttributesString() {
      $str = "";
      foreach ($this->attributes as $attr) {
        $str .= $attr->getKey() . "='" . $attr->getValue() . "',";
      } 
      return substr($str, 0, strlen($str) - 1);
    }