Implementing Inverter Class