implemented basic 2D plot