add class definition