added basic 2d plot class and updated tests