Finish the implementation of the simple-minded inverter.