Approach to Modelling Batteries