add class name method