The Least Squares Method