The economic goal of the state was to serve as what for the ruler?