Principles of Geometry. Vol. I., Foundations