Finished the implementation of class Tag.