added classes for work with Tags.