charge and capacity should be floats, of course