add_line function now prints the equation of the line