create new function for retrieve name of classes