add data function to fold a list and geometry_plot functions to plot lines and tests for the geometry functions