Moved get_tag_name to the Tag class