line regression working