refactor borrowBook and returnBook