Using Technology to Optimize and Generalize: The Least-Squares Line