Elements of Energy Management System