law mandating compulsory education 1840