Functionality in phenol-formaldehyde step-growth polymerization