Added an api to get data per class.