A capacitor with capacitance C is initially charged with charge q. At time t = 0, a switch is thrown to close the circuit connecting the capacitor in series with a resistor of resistance R. What is the behavior of the charge on the capacitor as a function of time?