Star formation and abundance gradients in the galaxy