Which time period did the pharaohs help out the people?