Example of multi-functional grid connected inverter