1) What is a transformer and how does it work?