As of the 1600s when the "House of the Abandoned" was founded, however was soon neglected, and in 1705 a new management took over the house and named it "Foundling House" though this too was unsuccessful. The "House of Charity" was founded before the revolution, nevertheless, also took its place in the shadows of success because protection of the children and the conditions in which they lived were not guaranteed. In 1959, the Ministry of Social Welfare was created and the houses were not part of the state. Now it was the state that had to provide for the minors. In 1960 the Government assigned the Federation of Cuban Women (FCW) to take charge of these houses, and set them up accordingly; ages 0–3 (homes with cradles), ages 3–6 (pre-scholastic farms), ages 6–12 (scholastic farms), ages 12–18 (youthful farms). This was then refined with The Family Code of 1975 (giving certain rights/obligations to parents), the Code of the Childhood and the Youth, approved in 1978, and the Decree Law 76 of January 1984 (which created a national network of centers that took care of minors without shelter). This new law centered on children up to the age of 5 with daycare, helped with homes for minors ages 6–17, and also helped children who were in school past the age of 17.