Change logPlot.py to use more OOP