Added set_class method to tag class