Composite of Continuous Mappings between Metric Spaces is Continuous

Theorem
Let $M_1 = \left({X_1, d_1}\right), M_2 = \left({X_2, d_2}\right), M_3 = \left({X_3, d_3}\right)$ be metric spaces.

Let $f: M_1 \to M_2$ and $g: M_2 \to M_3$ be continuous mappings.

Then their composite $g \circ f: M_1 \to M_3$ is continuous.