Impact of laws on child labor and education