I am looking at the following exercise:
If $S$ is a smooth surface, define the notion of a smooth function $S \rightarrow \mathbb{R}$.
Show that, if $S$ is a smooth surface, each component of the inclusion map $S \rightarrow \mathbb{R}^3$ is a smooth function $S \rightarrow \mathbb{R}$.
I have done the following:
For any point $p\in S$, there exists an open set $U\subseteq \mathbb{R}^2$, and open set $W\subseteq \mathbb{R}^3$, and a smooth function $\sigma:U\to \mathbb{R}^3$, such that $\sigma$ is a homeomorphism from $U$ onto $S\cap W$.