assign a class to display data from the library