added base code for plot points