added inverter class