before turning into a public library the building was conceived for other functions