Fixed input format and filled in book_binder function