This is a problem from Pugh's Real Mathematical Analysis [Chapter 5].
If $C$ is a smooth simple closed curve in the plane, show that it is the union of finitely many arcs $C_l$, each of which is the graph of a smooth function $y = h(x)$ or $x = h(y)$, and the arcs $C_l$ meet only at common endpoints.
Attempt : Let $C$ be parametrized by $t$, that is, $(x(t),y(t))$ be its coordinates, where $t$ changes in $[0,1]$. We can start by letting $t_0$ = $0$ and continue traversing the curve (either clockwise or counter-clockwise) until one of the coordinates of the derivate changes sign. Let's call this point $t_1$. With continuing the same algorithm, we have partitioned $C$ into a (not necessarily finite) number of arcs with their domain $[t_i,t_{i+1}]$. But here two things remain to be proved:
First : How to revise the algorithm so that the sign-changing points are finite? Or how to show that they are finite, if it is the case?
Second : It is easy to show that in each arc either $x$ is a function of $y$ or vice versa. The question is why one of them is an smooth function of the other.
Thanks for your suggestions in advance. Note that I'm taking an Advanced Calculus course and I'm not familiar with manifolds or algebraic topology. So keep your answers as simple as possible.