add class detail