How to Charge a Capacitor