Library as expandable tree