Class-ify

Makes a class for the flow meter.