How to structure a battery management system Power