a demo for Resistive load circuit simulation