Create a class ECMeter and all functions class methods