adding least square example