classes function

Extract the contents of the attribute classes