Let $f:[0,1]\rightarrow \mathbb{R}$ be a Riemann Integrable function. Let $\epsilon>0$. Show that there exist continuous functions $g,h:[0,1]\rightarrow \mathbb{R}$ such that $g(x)\leq f(x)\leq h(x)$ for all $x\in [0,1]$ and $$\int_0^1 (h(x)-g(x))\mathsf dx<\epsilon.$$
My Try:
There exists a partition $P$ such that $U(P,f)-L(P,f)<\epsilon$. But how can I find continuous functions? I want to try this problem myself. So can anybody please give me just a hint?