added method to plot points