refactor borrowBook