Which of the following contributed to fewer children working outside the home?

A. increasing urban population
B. the use of credit for purchases
C. new electric appliances
D. school attendance laws