Mandatory schooling had a large influence on the fight to get children out of factories. It was first enacted by the state of Massachusetts, the law requires children under 15 working in factories to attend school at least 3 months/year. By requiring children to attend school, even for just a small part of the year, not only was the state promoting the wellbeing of future citizens, they kept many from the devastating conditions of factories. Not all mass production happens in factories, some companies took advantage of children by making them work inside tenements; however the New York labor movement was able to successfully sponsored legislation prohibiting cigar making in tenements, freeing thousands of children. Just before the turn of the 19th century, the democratic party adopted the union’s recommendations and made the prohibition of workers under 15 being employed by factories. While this was not official legislation, it was a huge step towards a federal bill prohibiting young child