A transistor as a capacitor