HOW DOES A BATTERY MANAGEMENT SYSTEM WORK