Compound $X$ undergoes reaction with ethanoic acid in the presence of an $\text{H}^+$ catalyst, forming the compound shown. What is the molecular formula of compound $X$?
- A$\text{C}_2\text{H}_4\text{O}$
- B$\text{C}_2\text{H}_6\text{O}_2$
- C$\text{C}_4\text{H}_8\text{O}$
- D$\text{C}_4\text{H}_8\text{O}_2$