HOW TO DESIGN A GOOD BATTERY MANAGEMENT