Continuity and the Intermediate Value Theorem