The first colleges in the United States were intended to train members of the clergy. The libraries associated with these institutions largely consisted of donated books on the subjects of theology and the classics. In 1766, Yale had approximately 4,000 volumes, second only to Harvard. Access to these libraries was restricted to faculty members and a few students: the only staff was a part-time faculty member or the president of the college. The priority of the library was to protect the books, not to allow patrons to use them. In 1849, Yale was open 30 hours a week, the University of Virginia was open nine hours a week, Columbia University four, and Bowdoin College only three. Students instead created literary societies and assessed entrance fees in order to build a small collection of usable volumes often in excess of what the university library held.