the start of the bookshelf problem solv