Chemical Evolution of Protostars