Understanding AC And DC, How Diodes Work