The liver first appears in a developing fetus as early as the third week of pregnancy, although liver function probably does not begin until the sixth to tenth week of pregnancy.
The development of the respiratory system in the fetus begins at about 4 weeks.