my first attempt to integrate plot
only plots the points not the lines :(