What kind of device is a capacitor