what is energy and how does it work?