Added the plot_line function