Adding some abstraction to plot1.h and untested sample code to tester