MODELING AND SIMULATION OF BATTERIES AND DEVELOPMENT OF AN ENERGY