Estimating Parameters of a Battery