implement tag_pos()
implement get_tag()
re-arrange main(): make it smaaallleeeer