Implemented the edit book function.