A capacitor is kept connected to the battery and a dielectric slab is inserted between the plates. During this process
A. No work is done
B. Work is done at the cost of the energy already stored in the capacitor before the slab is inserted
C. Work is done at the cost of the battery
D. Work is done at the cost of both the capacitor and the battery