Adding class structure for polymers