bookstore : greedy method