add new function to class Book