Written code to pass test for  check_out_book method