I am studying the S G Krantz's book, where in the quotient topologies section, while defining the "the space obtained from $X$ by collapsing the subset $E$ to a point"(it is nothing but, taking a subset of the original topological space and obtain a space by identifying each point in the subset to one point and make each points not in the subset to singletons ). Its definition is clear to me. But while dealing with an examples(which I mention as following ) of it in the book, I have some problem to visualize.
Let $X$ be the closed unit ball in $\mathbb{R}^n$ and $\mathbb{S}^{n-1}$ be the unit sphere in $\mathbb{R}^n$. Then $\mathbb{S}^{n-1}$ is the boundary of $X$. If we take the space obtained from X by collapsing its boundary to a point, we obtain a space that is homeomorphic to $\mathbb{S}^{n}$ (the unit sphere in $\mathbb{R}^{n+1}$). Please someone help me to understand this example.