he served as a senator and deputy of the new country