added method for retrieving all attributes from classList