Following is problem:
Assume that $\{f_n\}$ is a sequence of monotonically increasing functions on $\mathbb{R}^1$ with $0\leq f_n(x) \leq 1$ for all $x$ and all $n$
$(a)$ Prove that there is a function $f$ and a sequence $\{n_k\}$ such that $$f(x)=\lim_{k\rightarrow \infty}f_{n_k}(x)$$ for every $x\in\mathbb{R}^1$.
$(b)$ If moreover, $f$ is continuous, and $f(x)\rightarrow 1$ as $x\rightarrow \infty$ and $f(x)\rightarrow 0$ as $x\rightarrow -\infty$ , prove that $f_{n_k}\rightarrow f$ uniformly on $\mathbb{R}^1$.
I understand the proof of the existence of pointwise convergent subsequence $f_{n_k}(x)$ which $(a)$ implying.
Accepting (a) as theorem, can anyone prove $(b)$?
The above solution of baby Rudin make me more confuse.