A student is sorting two organic compounds. The labels show the following condensed structural formulae:
| Sample | Condensed structural formula |
|---|---|
| A | CH3CH2CH2OH\text{CH}_3\text{CH}_2\text{CH}_2\text{OH}CH3CH2CH2OH |
| B | CH3CH2COOH\text{CH}_3\text{CH}_2\text{COOH}CH3CH2COOH |
The student says that both samples are alcohols because both formulae contain an -OH\text{-OH}-OH section.
State the functional group in sample A and the functional group in sample B.
Explain why the student's conclusion is incorrect.