Josiah Quincy, Jr. anonymously donated $5,000 to begin funding a new library. Quincy made the donation while he was mayor of Boston. Indirectly, John Jacob Astor, businessman and philanthropist, also influenced the establishment of a public library in Boston. At the time of his death, Astor bequeathed $400,000 to New York to establish a public library there. Because of the cultural and economic rivalry between Boston and New York, this bequest prompted more discussion of establishing a public library in Boston. In 1848, a statute of the Great and General Court of Massachusetts enabled the creation of the library. The library was officially established in Boston by a city ordinance in 1852. Mayor Benjamin Seaver recommended to the city council that a librarian be appointed. In May 1852 the city council adopted the recommendations of the mayor and Edward Capen was chosen to become Boston Public Library's first librarian.