partial implementation of the model-view-controller class with JPlot package