Finished add book function