The Foundations of Geometry