Added a Tag::setAttributes() method