Text this: The method of least squares, with applications in surveying