The Foundation of Geometry