The geometry of general curved surface was developed in the early 19th century by Carl Friedrich Gauss. This geometry had in turn been generalized to higher-dimensional spaces in Riemannian geometry introduced by Bernhard Riemann in the 1850s. With the help of Riemannian geometry, Einstein formulated a geometric description of gravity in which Minkowski's spacetime is replaced by distorted, curved spacetime, just as curved surfaces are a generalization of ordinary plane surfaces. Embedding Diagrams are used to illustrate curved spacetime in educational contexts.