Prove composition of continuous functions is continuous, and components of a continuous function into a product space are continuous