How was the oven invented?

when people wanted to heat food up. They used fire back then and since it was invented, it has changed to something safer and easier to use