Add lending and returning books function