Producing batteries for electric cars