add list books function