Let $D$ denote the set of rationals in $[0,1]$ and suppose that $f: D \rightarrow \mathbb{R}$ is increasing. Show that there is an increasing function $g:[0,1] \rightarrow \mathbb{R}$ such that $g(x)=f(x)$ whenever $x$ is rational. [Hint: For $x \in[0,1]$, define $g(x)=\sup (f(t)$ : $0 \leq t \leq 1, t \in \mathbb{Q}\}$.]