change plotter to make it clear that the plot method is just a side-effecting method.