Explaining how a transformer works