add a class_name method