what was chester a arthur's occupation before he was elected president?