"such duties and receive such compensation as may be prescribed by law." . . . .