A smarter way of managing electricity