A model for the chemical evolution of the solar neighborhood using metallicity dependent yields