when william was an adult , having inherited his father 's talent for making money and his share of the father 's fortune , he bought the building and leased it to the diocese with the stipulation that the church would run the orphanage and take care of the children properly .