added class_name method to Element