(a) Let $f_1: X \rightarrow Y_1$ and $f_2: X \rightarrow Y_2$ be continuous functions. Show that $h: X \rightarrow Y_1 \times Y_2$, defined by $h(x)=\left(f_1(x), f_2(x)\right)$, is continuous as well.
(b) Extend the result of (a) to $n$ functions, for $n>2$.