Gravitational and electric fields