Changed scope of Tag class fields to protected