Move function getTagValue() into Tags class and have some problem about getTagValue()