How did the problem of Juvenile Delinquency arise?

How did the problem of Juvenile Delinquency arise? Compare and contrast how juveniles were treated in the industrial revolution and common schools. What factors led to their demise as viable means for dealing with delinquent and/or unsupervised youth? Should be 250- 300 words. Refer to and cite current resources in your answer.