How does the toaster toast?

Imagine you’d travel back in time. Could you explain how a toaster works?