What is a UPS and how does it work?