Endus' good example of the pyramids is perfect for the flawed view that we have of history.
This is the first pyramid (that we know of) built by the ancient egyptians:
It's a complete mess when compared with the other Giza Pyramids. But it was the architectonic evolution of the mastaba, it took centuries of trail and error to get to the Pyramid of Khafre.