An extended theory of gravity in a modified Riemann’s geometry