Developing the get_tags() function