add example of minimizing square error