How were the pyramids built by the ancient Egyptians?