government system during spanish era